package com.murong.ai.coder.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.murong.ai.coder.domain.WindowService;

@RestController
public class WindowController {

    @Autowired
    private WindowService windowService;

    @GetMapping("/open")
    public String open() {
        windowService.openSqlExecWindow();
        return "窗口已打开";
    }

    @GetMapping("/close")
    public String close() {
        windowService.closeWindow();
        return "窗口已关闭";
    }

} 